home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 46
/
Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso
/
-in_the_mag-
/
reader_requests
/
scilab
/
demos
/
signal
/
iirfilt.dem
< prev
next >
Wrap
Text File
|
1999-09-16
|
535b
|
20 lines
////////////////////////
//DISCRETE IIR FILTERS//
////////////////////////
//Low pass filter (length 5, type cheb1, cut-off .2)
hz=iir(5,'lp','cheb1',[.2 0],[.05 .05]);
[hzm,fr]=frmag(hz,256);
plot2d(fr',hzm')
xtitle('Discrete IIR filter : low pass fr <0.2',' ',' ');
halt()
xbasc();
//Band pass filter (length 3, type ellip, cut-offs .15 and .25)
hz=iir(3,'bp','ellip',[.15 .25],[.08 .03]);
[hzm,fr]=frmag(hz,256);
plot2d(fr',hzm')
xtitle('Discrete IIR filter band pass 0.15<fr<0.25 ',' ',' ');